<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Flow: flow::log::Ostream_log_msg_writer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Flow<span id="projectnumber">&#160;2.0.0</span>
   </div>
   <div id="projectbrief">Flow project: Full implementation reference.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceflow.html">flow</a></li><li class="navelem"><a class="el" href="namespaceflow_1_1log.html">log</a></li><li class="navelem"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html">Ostream_log_msg_writer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-types">Private Types</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a> &#124;
<a href="classflow_1_1log_1_1Ostream__log__msg__writer-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">flow::log::Ostream_log_msg_writer Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Utility class, each object of which wraps a given <code>ostream</code> and outputs discrete messages to it adorned with time stamps and other formatting such as separating newlines.  
 <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for flow::log::Ostream_log_msg_writer:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1log_1_1Ostream__log__msg__writer__inherit__graph.svg" width="143" height="119"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for flow::log::Ostream_log_msg_writer:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1log_1_1Ostream__log__msg__writer__coll__graph.svg" width="1526" height="750"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a701b932c4f46f1edb96a975ad7076ccf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a701b932c4f46f1edb96a975ad7076ccf">Ostream_log_msg_writer</a> (const <a class="el" href="classflow_1_1log_1_1Config.html">Config</a> &amp;config, std::ostream &amp;os)</td></tr>
<tr class="memdesc:a701b932c4f46f1edb96a975ad7076ccf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs object wrapping the given <code>ostream</code>.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a701b932c4f46f1edb96a975ad7076ccf">More...</a><br /></td></tr>
<tr class="separator:a701b932c4f46f1edb96a975ad7076ccf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa05b822916ceb37db219ec73563b146d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aa05b822916ceb37db219ec73563b146d">~Ostream_log_msg_writer</a> () noexcept</td></tr>
<tr class="memdesc:aa05b822916ceb37db219ec73563b146d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Restores formatting state of <code>os</code> to how it was before entry to constructor.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aa05b822916ceb37db219ec73563b146d">More...</a><br /></td></tr>
<tr class="separator:aa05b822916ceb37db219ec73563b146d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba0a94e36e435aeb67bbc25fee8380f7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7">log</a> (const <a class="el" href="structflow_1_1log_1_1Msg__metadata.html">Msg_metadata</a> &amp;metadata, <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a> msg)</td></tr>
<tr class="memdesc:aba0a94e36e435aeb67bbc25fee8380f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Logs to the wrapped <code>ostream</code> the given message and associated metadata like severity and time stamp; plus a newline.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7">More...</a><br /></td></tr>
<tr class="separator:aba0a94e36e435aeb67bbc25fee8380f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-types" name="pri-types"></a>
Private Types</h2></td></tr>
<tr class="memitem:a418dcc115e27764db1a81077792d8e43"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a418dcc115e27764db1a81077792d8e43">Ostream_state</a> = boost::io::ios_all_saver</td></tr>
<tr class="memdesc:a418dcc115e27764db1a81077792d8e43"><td class="mdescLeft">&#160;</td><td class="mdescRight">Short-hand for an <code>ostream</code> state saver.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a418dcc115e27764db1a81077792d8e43">More...</a><br /></td></tr>
<tr class="separator:a418dcc115e27764db1a81077792d8e43"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-methods" name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:ab0f5d7c5f289defcded5fa3560059411"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#ab0f5d7c5f289defcded5fa3560059411">do_log_with_epoch_time_stamp</a> (const <a class="el" href="structflow_1_1log_1_1Msg__metadata.html">Msg_metadata</a> &amp;metadata, <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a> msg)</td></tr>
<tr class="memdesc:ab0f5d7c5f289defcded5fa3560059411"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> implementation with time stamp = seconds.microseconds since Epoch.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#ab0f5d7c5f289defcded5fa3560059411">More...</a><br /></td></tr>
<tr class="separator:ab0f5d7c5f289defcded5fa3560059411"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53d47232844dc7060ee95b4d831bbe29"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a53d47232844dc7060ee95b4d831bbe29">do_log_with_human_friendly_time_stamp</a> (const <a class="el" href="structflow_1_1log_1_1Msg__metadata.html">Msg_metadata</a> &amp;metadata, <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a> msg)</td></tr>
<tr class="memdesc:a53d47232844dc7060ee95b4d831bbe29"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> implementation with time stamp = date/time with microsecond+ resolution/time zone, in current OS time zone.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a53d47232844dc7060ee95b4d831bbe29">More...</a><br /></td></tr>
<tr class="separator:a53d47232844dc7060ee95b4d831bbe29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ac568ffa478c6fc64775c23b00d3fb3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a7ac568ffa478c6fc64775c23b00d3fb3">log_past_time_stamp</a> (const <a class="el" href="structflow_1_1log_1_1Msg__metadata.html">Msg_metadata</a> &amp;metadata, <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a> msg)</td></tr>
<tr class="memdesc:a7ac568ffa478c6fc64775c23b00d3fb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remainder of <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> functionality after either <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#ab0f5d7c5f289defcded5fa3560059411" title="log() implementation with time stamp = seconds.microseconds since Epoch.">do_log_with_epoch_time_stamp()</a> or <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a53d47232844dc7060ee95b4d831bbe29" title="log() implementation with time stamp = date/time with microsecond+ resolution/time zone,...">do_log_with_human_friendly_time_stamp()</a>, once either has logged the time stamp.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a7ac568ffa478c6fc64775c23b00d3fb3">More...</a><br /></td></tr>
<tr class="separator:a7ac568ffa478c6fc64775c23b00d3fb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a9a95b0f429db5e9b19055cf251b063a7"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classflow_1_1log_1_1Config.html">Config</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a9a95b0f429db5e9b19055cf251b063a7">m_config</a></td></tr>
<tr class="memdesc:a9a95b0f429db5e9b19055cf251b063a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to the config object passed to constructor. See notes on thread safety.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a9a95b0f429db5e9b19055cf251b063a7">More...</a><br /></td></tr>
<tr class="separator:a9a95b0f429db5e9b19055cf251b063a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a078336512565196f18debc72acc2e73f"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classflow_1_1Function.html">Function</a>&lt; void(<a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html">Ostream_log_msg_writer</a> *, const <a class="el" href="structflow_1_1log_1_1Msg__metadata.html">Msg_metadata</a> &amp;, <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a>)&gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a078336512565196f18debc72acc2e73f">m_do_log_func</a></td></tr>
<tr class="memdesc:a078336512565196f18debc72acc2e73f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to function that <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> will forward to when invoked.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a078336512565196f18debc72acc2e73f">More...</a><br /></td></tr>
<tr class="separator:a078336512565196f18debc72acc2e73f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac37b6d6bbfb5c9feefd35fd78cc66dad"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#ac37b6d6bbfb5c9feefd35fd78cc66dad">m_os</a></td></tr>
<tr class="memdesc:ac37b6d6bbfb5c9feefd35fd78cc66dad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reference to stream to which to log messages.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#ac37b6d6bbfb5c9feefd35fd78cc66dad">More...</a><br /></td></tr>
<tr class="separator:ac37b6d6bbfb5c9feefd35fd78cc66dad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf6caa588e382495f7605da38caa42bf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a418dcc115e27764db1a81077792d8e43">Ostream_state</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aaf6caa588e382495f7605da38caa42bf">m_clean_os_state</a></td></tr>
<tr class="memdesc:aaf6caa588e382495f7605da38caa42bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Formatter state of <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#ac37b6d6bbfb5c9feefd35fd78cc66dad" title="Reference to stream to which to log messages.">m_os</a> at construction. Used at least in destructor (as of this writing) to restore it.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aaf6caa588e382495f7605da38caa42bf">More...</a><br /></td></tr>
<tr class="separator:aaf6caa588e382495f7605da38caa42bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c32abeff2a91c303a0568df84e9d3fe"><td class="memItemLeft" align="right" valign="top">std::array&lt; char, S_HUMAN_FRIENDLY_TIME_STAMP_MIN_SZ_TEMPLATE.size()+S_HUMAN_FRIENDLY_TIME_STAMP_REST_SZ_TEMPLATE.size()+1 &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a1c32abeff2a91c303a0568df84e9d3fe">m_last_human_friendly_time_stamp_str</a></td></tr>
<tr class="memdesc:a1c32abeff2a91c303a0568df84e9d3fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Buffer storing the last <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> time stamp in human-friendly form, including a NUL at the end.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a1c32abeff2a91c303a0568df84e9d3fe">More...</a><br /></td></tr>
<tr class="separator:a1c32abeff2a91c303a0568df84e9d3fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a128cbd9b57957c6d53ca064228930391"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a128cbd9b57957c6d53ca064228930391">m_last_human_friendly_time_stamp_str_sz</a></td></tr>
<tr class="memdesc:a128cbd9b57957c6d53ca064228930391"><td class="mdescLeft">&#160;</td><td class="mdescRight">Length of string in <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a1c32abeff2a91c303a0568df84e9d3fe" title="Buffer storing the last log() time stamp in human-friendly form, including a NUL at the end.">m_last_human_friendly_time_stamp_str</a> (excluding any NUL).  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a128cbd9b57957c6d53ca064228930391">More...</a><br /></td></tr>
<tr class="separator:a128cbd9b57957c6d53ca064228930391"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a716e6a13b113019834de45b28c577a0a"><td class="memItemLeft" align="right" valign="top">std::chrono::time_point&lt; std::chrono::system_clock, std::chrono::seconds &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a716e6a13b113019834de45b28c577a0a">m_cached_rounded_time_stamp</a></td></tr>
<tr class="memdesc:a716e6a13b113019834de45b28c577a0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">As used in the caching-for-perf algorithm in <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a53d47232844dc7060ee95b4d831bbe29" title="log() implementation with time stamp = date/time with microsecond+ resolution/time zone,...">do_log_with_human_friendly_time_stamp()</a>, this is the seconds-precision version of high-precision <a class="el" href="structflow_1_1log_1_1Msg__metadata.html#a11e04fcee8409b76adb9aaa3108f90e1" title="Time stamp from as close as possible to entry into the log call site (usually FLOW_LOG_WARNING() or s...">Msg_metadata::m_called_when</a>, when <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a53d47232844dc7060ee95b4d831bbe29" title="log() implementation with time stamp = date/time with microsecond+ resolution/time zone,...">do_log_with_human_friendly_time_stamp()</a> last had to perform full formatted-output into <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a1c32abeff2a91c303a0568df84e9d3fe" title="Buffer storing the last log() time stamp in human-friendly form, including a NUL at the end.">m_last_human_friendly_time_stamp_str</a>.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a716e6a13b113019834de45b28c577a0a">More...</a><br /></td></tr>
<tr class="separator:a716e6a13b113019834de45b28c577a0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-static-attribs" name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr class="memitem:a0b99bff54e9784c072061ba35914d7ce"><td class="memItemLeft" align="right" valign="top">static const std::vector&lt; <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a0b99bff54e9784c072061ba35914d7ce">S_SEV_STRS</a></td></tr>
<tr class="memdesc:a0b99bff54e9784c072061ba35914d7ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mapping from Sev to its brief string description.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a0b99bff54e9784c072061ba35914d7ce">More...</a><br /></td></tr>
<tr class="separator:a0b99bff54e9784c072061ba35914d7ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a192af9b871a5243ccd8ece7ba10f46a4"><td class="memItemLeft" align="right" valign="top">static const boost::chrono::system_clock::time_point&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a192af9b871a5243ccd8ece7ba10f46a4">S_POSIX_EPOCH</a> = boost::chrono::system_clock::from_time_t(0)</td></tr>
<tr class="memdesc:a192af9b871a5243ccd8ece7ba10f46a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Jan 1, 1970, 00:00.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a192af9b871a5243ccd8ece7ba10f46a4">More...</a><br /></td></tr>
<tr class="separator:a192af9b871a5243ccd8ece7ba10f46a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63185c1743f22be5de7e453424bca50e"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a63185c1743f22be5de7e453424bca50e">S_HUMAN_FRIENDLY_TIME_STAMP_MIN_SZ_TEMPLATE</a> {&quot;2024-02-05 22:09:&quot;}</td></tr>
<tr class="memdesc:a63185c1743f22be5de7e453424bca50e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Example human-readable time stamp output, up to but excluding seconds, for compile-time size calculations.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a63185c1743f22be5de7e453424bca50e">More...</a><br /></td></tr>
<tr class="separator:a63185c1743f22be5de7e453424bca50e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5975ce26de8209e2632f90f635cc5291"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a5975ce26de8209e2632f90f635cc5291">S_HUMAN_FRIENDLY_TIME_STAMP_REST_SZ_TEMPLATE</a> {&quot;31.357246045 +0000 &quot;}</td></tr>
<tr class="memdesc:a5975ce26de8209e2632f90f635cc5291"><td class="mdescLeft">&#160;</td><td class="mdescRight">Example human-readable time stamp output, starting with seconds, for compile-time size calculations.  <a href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a5975ce26de8209e2632f90f635cc5291">More...</a><br /></td></tr>
<tr class="separator:a5975ce26de8209e2632f90f635cc5291"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Utility class, each object of which wraps a given <code>ostream</code> and outputs discrete messages to it adorned with time stamps and other formatting such as separating newlines. </p>
<p >A <a class="el" href="classflow_1_1log_1_1Config.html" title="Class used to configure the filtering and logging behavior of Loggers; its use in your custom Loggers...">Config</a> object controls certain aspects of its behavior; pass this to the constructor. The <a class="el" href="classflow_1_1log_1_1Config.html" title="Class used to configure the filtering and logging behavior of Loggers; its use in your custom Loggers...">Config</a> may come from the user as passed to the <a class="el" href="classflow_1_1log_1_1Logger.html" title="Interface that the user should implement, passing the implementing Logger into logging classes (Flow&#39;...">Logger</a> (if any) using <code>*this</code>; or that <a class="el" href="classflow_1_1log_1_1Logger.html" title="Interface that the user should implement, passing the implementing Logger into logging classes (Flow&#39;...">Logger</a> (if any) can make its own from scratch.</p>
<p >It is assumed that between the first and last calls to <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> no other code whatsoever writes to the underlying stream (as passed to ctor) at any point &ndash; including any formatters. At <code>*this</code> destruction formatter state is restored.</p>
<h3>Rationale</h3>
<p >This optional (but recommended for most <a class="el" href="classflow_1_1log_1_1Logger.html" title="Interface that the user should implement, passing the implementing Logger into logging classes (Flow&#39;...">Logger</a> implementations, though technically not limited to their use) utility class typically sits between some "physical" output medium &ndash; a buffer in memory, a file, etc. &ndash; that can be written to using an <code>ostream</code> (e.g., <code>std::ostringstream</code>, <a class="el" href="classflow_1_1util_1_1String__ostream.html" title="Similar to ostringstream but allows fast read-only access directly into the std::string being written...">util::String_ostream</a>, <code>std::ofstream</code>); and a <a class="el" href="classflow_1_1log_1_1Logger.html" title="Interface that the user should implement, passing the implementing Logger into logging classes (Flow&#39;...">Logger</a> implementation that promises to output log messages to that output medium. When <a class="el" href="classflow_1_1log_1_1Logger.html#a934667f16dd6ca0841e521296ab3a6e2" title="Given a message and its severity, logs that message and possibly severity WITHOUT checking whether it...">Logger::do_log()</a> is called, the message string passed to it will contain the user's original message plus various <a class="el" href="structflow_1_1log_1_1Msg__metadata.html" title="Simple data store containing all of the information generated at every logging call site by flow::log...">Msg_metadata</a> nuggets (like time stamp, severity, source code location) either generated by <a class="el" href="log_8hpp.html#a5daa2b6d16edea74bb8bddc75f7fb801" title="Identical to FLOW_LOG_WITH_CHECKING() but foregoes the filter (Logger::should_log()) check.">FLOW_LOG_WITHOUT_CHECKING()</a> implementation or provided by user. The idea is the <a class="el" href="classflow_1_1log_1_1Logger.html" title="Interface that the user should implement, passing the implementing Logger into logging classes (Flow&#39;...">Logger</a> is to decide on the output format of the various metadata plus the message. Therefore, the present class outputs all those pieces (as appropriate) plus separating newlines. Any <a class="el" href="classflow_1_1log_1_1Logger.html" title="Interface that the user should implement, passing the implementing Logger into logging classes (Flow&#39;...">Logger</a> is free to use any format it wants; and some <code><a class="el" href="classflow_1_1log_1_1Logger.html" title="Interface that the user should implement, passing the implementing Logger into logging classes (Flow&#39;...">Logger</a></code>s might not even generate any output character stream but rather forward everything elsewhere (maybe even over the network); but <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html" title="Utility class, each object of which wraps a given ostream and outputs discrete messages to it adorned...">Ostream_log_msg_writer</a> provides a reasonable output format to a character stream, to be used or not as desired.</p>
<h3>Thread safety</h3>
<p >For a given <code>*this</code>, the class is not safe for concurrent calls to <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a>. The using code must provide any such guarantees.</p>
<p >See thread safety notes and to-dos regarding config in <a class="el" href="classflow_1_1log_1_1Simple__ostream__logger.html" title="An implementation of Logger that logs messages to the given ostreams (e.g., cout or an ofstream for a...">Simple_ostream_logger</a> doc header. These apply here also.</p>
<h2>Impl notes </h2>
<h3>Human-readable time stamps, caching</h3>
<p >At least optionally, <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> adds a human-readable time stamp readout with the date, time (including seconds.usec or better), and time zone. Just getting that in a decent, predictable form, without localized weirdness, and with sub-second precision can be non-trivial; <code>std::chrono</code> does not do it as of C++17; boost.chrono does but only as of a certain quietly added features called time-point I/O v2 (as opposed to v1). That in itself was workable; however:</p>
<p >When logging volume is very high, processor use by logging can be high, and as a percentage of cycles used, we noticed that a high proportion was used in formatting the <code>time_point</code> into the <code>ostream</code> by boost.chrono. Therefore we eventually moved to fmt, an output formatting library that is lightning-fast and whose API is now folded into C++20 standard lib (as of this writing we are on C++17); not unlike boost.chrono long ago became <code>std::chrono</code>. fmt provides flexibly formattable <code>time_point</code> output as well, so we can get everything we want just how we want it (in contrast with boost.chrono where it was merely a stroke of luck that the output was acceptable).</p>
<p >Moreover, we accomplish a slight additional speedup by <em>caching</em> the formatted output across <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> calls; in each <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> printing it up to but excluding seconds; then adding the seconds plus sub-seconds in a separate, less expensive fmt call. The cached output needs to be updated once the previous cached value is no longer applicable even up to the precision that is actually used.</p>
<h3>Why standard library time-points instead of boost.chrono?</h3>
<p >In the rest of Flow we tend to prefer boost.chrono to <code>std::chrono</code>; they are extremely similar, but boost.chrono adds a few features including some extra clocks which are useful. However fmt accepts <code>std::chrono</code> time points, so for this specific purpose we store an <code>std::chrono</code> time point in <a class="el" href="structflow_1_1log_1_1Msg__metadata.html" title="Simple data store containing all of the information generated at every logging call site by flow::log...">Msg_metadata</a>. At that point it was also reasonable to just use <code>std::chrono</code> for other time-related needs in this small class. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00102">102</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a418dcc115e27764db1a81077792d8e43" name="a418dcc115e27764db1a81077792d8e43"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a418dcc115e27764db1a81077792d8e43">&#9670;&nbsp;</a></span>Ostream_state</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a418dcc115e27764db1a81077792d8e43">flow::log::Ostream_log_msg_writer::Ostream_state</a> =  boost::io::ios_all_saver</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Short-hand for an <code>ostream</code> state saver. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00147">147</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a701b932c4f46f1edb96a975ad7076ccf" name="a701b932c4f46f1edb96a975ad7076ccf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a701b932c4f46f1edb96a975ad7076ccf">&#9670;&nbsp;</a></span>Ostream_log_msg_writer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">flow::log::Ostream_log_msg_writer::Ostream_log_msg_writer </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classflow_1_1log_1_1Config.html">Config</a> &amp;&#160;</td>
          <td class="paramname"><em>config</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructs object wrapping the given <code>ostream</code>. </p>
<p >Does not write any characters to stream (so, for instance, if it happens to be an <code>ofstream</code> then it is fine if it's not yet open or even associated with a path). It may however do stateful things such as format setting.</p>
<p >If any non-default formatting has been applied to <code>os</code>, subsequent behavior is undefined.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>Controls behavior of <code>*this</code>. See thread safety notes in class doc header. This is saved <em>by reference</em> inside <code>*this</code>; it must remain valid through the last <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> call. </td></tr>
    <tr><td class="paramname">os</td><td>Stream to which to write subsequently via <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00038">38</a> of file <a class="el" href="ostream__log__msg__writer_8cpp_source.html">ostream_log_msg_writer.cpp</a>.</p>

<p class="reference">References <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00212">m_config</a>, <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00218">m_os</a>, and <a class="el" href="config_8hpp_source.html#l00793">flow::log::Config::m_use_human_friendly_time_stamps</a>.</p>

</div>
</div>
<a id="aa05b822916ceb37db219ec73563b146d" name="aa05b822916ceb37db219ec73563b146d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa05b822916ceb37db219ec73563b146d">&#9670;&nbsp;</a></span>~Ostream_log_msg_writer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">flow::log::Ostream_log_msg_writer::~Ostream_log_msg_writer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Restores formatting state of <code>os</code> to how it was before entry to constructor. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00070">70</a> of file <a class="el" href="ostream__log__msg__writer_8cpp_source.html">ostream_log_msg_writer.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab0f5d7c5f289defcded5fa3560059411" name="ab0f5d7c5f289defcded5fa3560059411"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0f5d7c5f289defcded5fa3560059411">&#9670;&nbsp;</a></span>do_log_with_epoch_time_stamp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void flow::log::Ostream_log_msg_writer::do_log_with_epoch_time_stamp </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structflow_1_1log_1_1Msg__metadata.html">Msg_metadata</a> &amp;&#160;</td>
          <td class="paramname"><em>metadata</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a>&#160;</td>
          <td class="paramname"><em>msg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> implementation with time stamp = seconds.microseconds since Epoch. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">metadata</td><td>See <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a>. </td></tr>
    <tr><td class="paramname">msg</td><td>See <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00079">79</a> of file <a class="el" href="ostream__log__msg__writer_8cpp_source.html">ostream_log_msg_writer.cpp</a>.</p>

<p class="reference">References <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00165">log_past_time_stamp()</a>, <a class="el" href="log_8hpp_source.html#l01112">flow::log::Msg_metadata::m_called_when</a>, and <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00218">m_os</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1log_1_1Ostream__log__msg__writer_ab0f5d7c5f289defcded5fa3560059411_cgraph.svg" width="1172" height="202"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a53d47232844dc7060ee95b4d831bbe29" name="a53d47232844dc7060ee95b4d831bbe29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a53d47232844dc7060ee95b4d831bbe29">&#9670;&nbsp;</a></span>do_log_with_human_friendly_time_stamp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void flow::log::Ostream_log_msg_writer::do_log_with_human_friendly_time_stamp </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structflow_1_1log_1_1Msg__metadata.html">Msg_metadata</a> &amp;&#160;</td>
          <td class="paramname"><em>metadata</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a>&#160;</td>
          <td class="paramname"><em>msg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> implementation with time stamp = date/time with microsecond+ resolution/time zone, in current OS time zone. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">metadata</td><td>See <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a>. </td></tr>
    <tr><td class="paramname">msg</td><td>See <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00105">105</a> of file <a class="el" href="ostream__log__msg__writer_8cpp_source.html">ostream_log_msg_writer.cpp</a>.</p>

<p class="reference">References <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00165">log_past_time_stamp()</a>, <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00237">m_cached_rounded_time_stamp</a>, <a class="el" href="log_8hpp_source.html#l01112">flow::log::Msg_metadata::m_called_when</a>, <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00226">m_last_human_friendly_time_stamp_str</a>, <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00229">m_last_human_friendly_time_stamp_str_sz</a>, <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00218">m_os</a>, and <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00192">S_HUMAN_FRIENDLY_TIME_STAMP_MIN_SZ_TEMPLATE</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1log_1_1Ostream__log__msg__writer_a53d47232844dc7060ee95b4d831bbe29_cgraph.svg" width="1155" height="207"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="aba0a94e36e435aeb67bbc25fee8380f7" name="aba0a94e36e435aeb67bbc25fee8380f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba0a94e36e435aeb67bbc25fee8380f7">&#9670;&nbsp;</a></span>log()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void flow::log::Ostream_log_msg_writer::log </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structflow_1_1log_1_1Msg__metadata.html">Msg_metadata</a> &amp;&#160;</td>
          <td class="paramname"><em>metadata</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a>&#160;</td>
          <td class="paramname"><em>msg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Logs to the wrapped <code>ostream</code> the given message and associated metadata like severity and time stamp; plus a newline. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">metadata</td><td>See <code>*metadata</code> in <a class="el" href="classflow_1_1log_1_1Logger.html#a934667f16dd6ca0841e521296ab3a6e2" title="Given a message and its severity, logs that message and possibly severity WITHOUT checking whether it...">Logger::do_log()</a>. </td></tr>
    <tr><td class="paramname">msg</td><td>The message. No terminating newline is assumed (though there is no rule against it; but if one is present, a blank line will appear in wrapped <code>ostream</code>). </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00074">74</a> of file <a class="el" href="ostream__log__msg__writer_8cpp_source.html">ostream_log_msg_writer.cpp</a>.</p>

<p class="reference">References <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00215">m_do_log_func</a>.</p>

<p class="reference">Referenced by <a class="el" href="buffer__logger_8cpp_source.html#l00044">flow::log::Buffer_logger::do_log()</a>, and <a class="el" href="serial__file__logger_8cpp_source.html#l00063">flow::log::Serial_file_logger::do_log()</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1log_1_1Ostream__log__msg__writer_aba0a94e36e435aeb67bbc25fee8380f7_icgraph.svg" width="342" height="107"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<a id="a7ac568ffa478c6fc64775c23b00d3fb3" name="a7ac568ffa478c6fc64775c23b00d3fb3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ac568ffa478c6fc64775c23b00d3fb3">&#9670;&nbsp;</a></span>log_past_time_stamp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void flow::log::Ostream_log_msg_writer::log_past_time_stamp </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structflow_1_1log_1_1Msg__metadata.html">Msg_metadata</a> &amp;&#160;</td>
          <td class="paramname"><em>metadata</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a>&#160;</td>
          <td class="paramname"><em>msg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remainder of <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> functionality after either <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#ab0f5d7c5f289defcded5fa3560059411" title="log() implementation with time stamp = seconds.microseconds since Epoch.">do_log_with_epoch_time_stamp()</a> or <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a53d47232844dc7060ee95b4d831bbe29" title="log() implementation with time stamp = date/time with microsecond+ resolution/time zone,...">do_log_with_human_friendly_time_stamp()</a>, once either has logged the time stamp. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">metadata</td><td>See <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a>. </td></tr>
    <tr><td class="paramname">msg</td><td>See <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00165">165</a> of file <a class="el" href="ostream__log__msg__writer_8cpp_source.html">ostream_log_msg_writer.cpp</a>.</p>

<p class="reference">References <a class="el" href="util_2detail_2util_8hpp_source.html#l00112">FLOW_UTIL_WHERE_AM_I_FROM_ARGS</a>, <a class="el" href="log_8hpp_source.html#l01137">flow::log::Msg_metadata::m_call_thread_id</a>, <a class="el" href="log_8hpp_source.html#l01127">flow::log::Msg_metadata::m_call_thread_nickname</a>, <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00212">m_config</a>, <a class="el" href="log_8hpp_source.html#l01045">flow::log::Msg_metadata::m_msg_component</a>, <a class="el" href="log_8hpp_source.html#l01051">flow::log::Msg_metadata::m_msg_sev</a>, <a class="el" href="log_8hpp_source.html#l01096">flow::log::Msg_metadata::m_msg_src_file</a>, <a class="el" href="log_8hpp_source.html#l01105">flow::log::Msg_metadata::m_msg_src_function</a>, <a class="el" href="log_8hpp_source.html#l01102">flow::log::Msg_metadata::m_msg_src_line</a>, <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00218">m_os</a>, <a class="el" href="config_8cpp_source.html#l00152">flow::log::Config::output_component_to_ostream()</a>, and <a class="el" href="namespaceflow_1_1log.html#a5c602384e6fe9d7642740ac2fae4ad04a9ed9d44ce5760f61ea506d5571343624">flow::log::S_NONE</a>.</p>

<p class="reference">Referenced by <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00079">do_log_with_epoch_time_stamp()</a>, and <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00105">do_log_with_human_friendly_time_stamp()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1log_1_1Ostream__log__msg__writer_a7ac568ffa478c6fc64775c23b00d3fb3_cgraph.svg" width="946" height="202"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classflow_1_1log_1_1Ostream__log__msg__writer_a7ac568ffa478c6fc64775c23b00d3fb3_icgraph.svg" width="371" height="144"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a716e6a13b113019834de45b28c577a0a" name="a716e6a13b113019834de45b28c577a0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a716e6a13b113019834de45b28c577a0a">&#9670;&nbsp;</a></span>m_cached_rounded_time_stamp</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::chrono::time_point&lt;std::chrono::system_clock, std::chrono::seconds&gt; flow::log::Ostream_log_msg_writer::m_cached_rounded_time_stamp</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>As used in the caching-for-perf algorithm in <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a53d47232844dc7060ee95b4d831bbe29" title="log() implementation with time stamp = date/time with microsecond+ resolution/time zone,...">do_log_with_human_friendly_time_stamp()</a>, this is the seconds-precision version of high-precision <a class="el" href="structflow_1_1log_1_1Msg__metadata.html#a11e04fcee8409b76adb9aaa3108f90e1" title="Time stamp from as close as possible to entry into the log call site (usually FLOW_LOG_WARNING() or s...">Msg_metadata::m_called_when</a>, when <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a53d47232844dc7060ee95b4d831bbe29" title="log() implementation with time stamp = date/time with microsecond+ resolution/time zone,...">do_log_with_human_friendly_time_stamp()</a> last had to perform full formatted-output into <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a1c32abeff2a91c303a0568df84e9d3fe" title="Buffer storing the last log() time stamp in human-friendly form, including a NUL at the end.">m_last_human_friendly_time_stamp_str</a>. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00237">237</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00105">do_log_with_human_friendly_time_stamp()</a>.</p>

</div>
</div>
<a id="aaf6caa588e382495f7605da38caa42bf" name="aaf6caa588e382495f7605da38caa42bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf6caa588e382495f7605da38caa42bf">&#9670;&nbsp;</a></span>m_clean_os_state</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a418dcc115e27764db1a81077792d8e43">Ostream_state</a> flow::log::Ostream_log_msg_writer::m_clean_os_state</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Formatter state of <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#ac37b6d6bbfb5c9feefd35fd78cc66dad" title="Reference to stream to which to log messages.">m_os</a> at construction. Used at least in destructor (as of this writing) to restore it. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00221">221</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

</div>
</div>
<a id="a9a95b0f429db5e9b19055cf251b063a7" name="a9a95b0f429db5e9b19055cf251b063a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a95b0f429db5e9b19055cf251b063a7">&#9670;&nbsp;</a></span>m_config</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classflow_1_1log_1_1Config.html">Config</a>&amp; flow::log::Ostream_log_msg_writer::m_config</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reference to the config object passed to constructor. See notes on thread safety. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00212">212</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00165">log_past_time_stamp()</a>, and <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00038">Ostream_log_msg_writer()</a>.</p>

</div>
</div>
<a id="a078336512565196f18debc72acc2e73f" name="a078336512565196f18debc72acc2e73f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a078336512565196f18debc72acc2e73f">&#9670;&nbsp;</a></span>m_do_log_func</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classflow_1_1Function.html">Function</a>&lt;void (<a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html">Ostream_log_msg_writer</a>*, const <a class="el" href="structflow_1_1log_1_1Msg__metadata.html">Msg_metadata</a>&amp;, <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a>)&gt; flow::log::Ostream_log_msg_writer::m_do_log_func</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Pointer to function that <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> will forward to when invoked. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00215">215</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00074">log()</a>.</p>

</div>
</div>
<a id="a1c32abeff2a91c303a0568df84e9d3fe" name="a1c32abeff2a91c303a0568df84e9d3fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1c32abeff2a91c303a0568df84e9d3fe">&#9670;&nbsp;</a></span>m_last_human_friendly_time_stamp_str</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::array&lt;char, S_HUMAN_FRIENDLY_TIME_STAMP_MIN_SZ_TEMPLATE.size() + S_HUMAN_FRIENDLY_TIME_STAMP_REST_SZ_TEMPLATE.size() + 1&gt; flow::log::Ostream_log_msg_writer::m_last_human_friendly_time_stamp_str</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Buffer storing the last <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#aba0a94e36e435aeb67bbc25fee8380f7" title="Logs to the wrapped ostream the given message and associated metadata like severity and time stamp; p...">log()</a> time stamp in human-friendly form, including a NUL at the end. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00226">226</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00105">do_log_with_human_friendly_time_stamp()</a>.</p>

</div>
</div>
<a id="a128cbd9b57957c6d53ca064228930391" name="a128cbd9b57957c6d53ca064228930391"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a128cbd9b57957c6d53ca064228930391">&#9670;&nbsp;</a></span>m_last_human_friendly_time_stamp_str_sz</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t flow::log::Ostream_log_msg_writer::m_last_human_friendly_time_stamp_str_sz</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Length of string in <a class="el" href="classflow_1_1log_1_1Ostream__log__msg__writer.html#a1c32abeff2a91c303a0568df84e9d3fe" title="Buffer storing the last log() time stamp in human-friendly form, including a NUL at the end.">m_last_human_friendly_time_stamp_str</a> (excluding any NUL). </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00229">229</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00105">do_log_with_human_friendly_time_stamp()</a>.</p>

</div>
</div>
<a id="ac37b6d6bbfb5c9feefd35fd78cc66dad" name="ac37b6d6bbfb5c9feefd35fd78cc66dad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac37b6d6bbfb5c9feefd35fd78cc66dad">&#9670;&nbsp;</a></span>m_os</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; flow::log::Ostream_log_msg_writer::m_os</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Reference to stream to which to log messages. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00218">218</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00079">do_log_with_epoch_time_stamp()</a>, <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00105">do_log_with_human_friendly_time_stamp()</a>, <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00165">log_past_time_stamp()</a>, and <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00038">Ostream_log_msg_writer()</a>.</p>

</div>
</div>
<a id="a63185c1743f22be5de7e453424bca50e" name="a63185c1743f22be5de7e453424bca50e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63185c1743f22be5de7e453424bca50e">&#9670;&nbsp;</a></span>S_HUMAN_FRIENDLY_TIME_STAMP_MIN_SZ_TEMPLATE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">constexpr <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a> flow::log::Ostream_log_msg_writer::S_HUMAN_FRIENDLY_TIME_STAMP_MIN_SZ_TEMPLATE {&quot;2024-02-05 22:09:&quot;}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">constexpr</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Example human-readable time stamp output, up to but excluding seconds, for compile-time size calculations. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00192">192</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="ostream__log__msg__writer_8cpp_source.html#l00105">do_log_with_human_friendly_time_stamp()</a>.</p>

</div>
</div>
<a id="a5975ce26de8209e2632f90f635cc5291" name="a5975ce26de8209e2632f90f635cc5291"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5975ce26de8209e2632f90f635cc5291">&#9670;&nbsp;</a></span>S_HUMAN_FRIENDLY_TIME_STAMP_REST_SZ_TEMPLATE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">constexpr <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a> flow::log::Ostream_log_msg_writer::S_HUMAN_FRIENDLY_TIME_STAMP_REST_SZ_TEMPLATE {&quot;31.357246045 +0000 &quot;}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">constexpr</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Example human-readable time stamp output, starting with seconds, for compile-time size calculations. </p>
<h3>Subtlety</h3>
<p >fmt docs say <code>S</code> will use the precision "available"; in practice in our tested Linuxes it is nanoseconds; in the past I (ygoldfel) have also seen microseconds printed in this situation; might be some artifact of an internal time-formatting system API; whatever. However, it is unlikely it will in practice be better than nanoseconds; hence for our size-reserving purposes the template string with nanoseconds should suffice.</p>
<p >(It also says that if there is no sub-second value, then it won't print the sub-second portion; but this appears to be poorly worded documentation: It prints <code>.000000000</code> just fine.) </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00207">207</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

</div>
</div>
<a id="a192af9b871a5243ccd8ece7ba10f46a4" name="a192af9b871a5243ccd8ece7ba10f46a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a192af9b871a5243ccd8ece7ba10f46a4">&#9670;&nbsp;</a></span>S_POSIX_EPOCH</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const boost::chrono::system_clock::time_point flow::log::Ostream_log_msg_writer::S_POSIX_EPOCH = boost::chrono::system_clock::from_time_t(0)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Jan 1, 1970, 00:00. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00189">189</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

</div>
</div>
<a id="a0b99bff54e9784c072061ba35914d7ce" name="a0b99bff54e9784c072061ba35914d7ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b99bff54e9784c072061ba35914d7ce">&#9670;&nbsp;</a></span>S_SEV_STRS</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt; <a class="el" href="namespaceflow_1_1util.html#ae4dc52186797094b3040379ff19124c9">util::String_view</a> &gt; flow::log::Ostream_log_msg_writer::S_SEV_STRS</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Mapping from Sev to its brief string description. </p>

<p class="definition">Definition at line <a class="el" href="ostream__log__msg__writer_8hpp_source.html#l00186">186</a> of file <a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>log/<a class="el" href="ostream__log__msg__writer_8hpp_source.html">ostream_log_msg_writer.hpp</a></li>
<li>log/<a class="el" href="ostream__log__msg__writer_8cpp_source.html">ostream_log_msg_writer.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 28 2025 22:55:35 for Flow by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
</small></address>
</body>
</html>
